package com.yunkeji;

import cn.hutool.extra.spring.SpringUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.cache.annotation.EnableCaching;

/**
 * 启动程序
 *
 * @author yunkeji
 */
@EnableCaching
@SpringBootApplication
@Slf4j
public class YunKeJiApiApplication {

    public static void main(String[] args) {
        System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication application = new SpringApplication(YunKeJiApiApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        log.info(
                "云客集-爱洞-Api 【框架地址 https://gitee.com/dromara/RuoYi-Vue-Plus 版本V4.8.2-】"
                        + SpringUtil.getActiveProfile());
    }
}
